<template>
  <div>
    <button @click="increment">+</button>
    <button @click="decrement">-</button>
    <p>{{ count }}</p>
  </div>
</template>

<script setup>
import { ref, onMounted } from "vue"
import { useCounter } from "./hooks"
import { useRequest } from "./request"

const { count, increment, decrement } = useCounter()
const { data, loading, error, request } = useRequest()

onMounted(async () => {
  let res = await request("https://www.baidu.com")
  console.log(res);
  
})
</script>
